package vis.ds.stack;

import processing.core.PApplet;
import vis.app.DisplayFrame;

public class StackWorld extends PApplet {
	public static final int WORLD_WIDTH = 640;
	public static final int WORLD_HEIGHT = 480;
	public static final int WORLD_GAP = 150;

	// public static void main(String[] args) {
	// PApplet.main(new String[] { "--present", "StackWorld" });
	// }

	private Stack stack;
	private int stackSize;

	public void setup() {
		size(DisplayFrame.WORLD_WIDTH + DisplayFrame.WORLD_GAP,
				DisplayFrame.WORLD_HEIGHT + DisplayFrame.WORLD_GAP);

		this.stackSize = 6;
		stack = new Stack(this, stackSize);

		stack.visualPush(new Integer(11));
	}

	public void draw() {
		background(255);

		stack.display();
	}

}
